import { lazy } from "react";
import {RouterList} from "../utils/index"
export let mainRouter:RouterList =[
    {
        path:"/index/home",
        title:"Home",
        element:lazy(() =>import("../pages/index/Home")),
    },
    {
        path:"/index/payment_order",
        title:"Payment Order",
        element:lazy(() =>import("../pages/index/Payment_order")),
    }
]
const routes:RouterList = [
    {
        path:"/",
        to:"/login"
    },
    {
        path:"/index",
        element:lazy(() =>import("../pages/Index")),
        children:mainRouter
    },
    {
        path:"/login",
        element:lazy(() =>import("../pages/Login")),
    }
]

export default routes